package com.lamer.console.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lamer.console.base.dto.UpdatePasswordParam;
import com.lamer.console.base.dto.UserDto;
import com.lamer.console.base.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 黄诗鹏
 * @since 2021-09-25
 */
public interface IUserService extends IService<User> {

    User getUserByUserId(int id);

    User getUserByUsername(String username);

    UserDto getUserDtoByUserName(String username);

    boolean postUser(User user);

    boolean putUser(User user);

    boolean updatePassword(int id, UpdatePasswordParam updatePasswordParam);

    boolean resetPassword(int id);

}
